package com.example.model;


import java.util.Date;

/**
 * Author:HOU
 * date:2022/11/15  15:00
 * 案例:
 **/
public class Collection {
   private Integer id;
   private String cname;
   private Integer type;
   private Integer releasenum;//数量
   private Double price;
   private String content;//商品信息
   private Date startdate;//开始时间
   private Date enddate;//结束时间
   private String cimg;//图片路径
   private Integer residual;

   public Collection() {
   }

   public Collection(Integer id, String cname, Integer type, Integer releasenum, Double price, String content, Date startdate, Date enddate, String cimg, Integer residual) {
      this.id = id;
      this.cname = cname;
      this.type = type;
      this.releasenum = releasenum;
      this.price = price;
      this.content = content;
      this.startdate = startdate;
      this.enddate = enddate;
      this.cimg = cimg;
      this.residual = residual;
   }

   public Integer getResidual() {
      return residual;
   }

   public void setResidual(Integer residual) {
      this.residual = residual;
   }

   public Integer getId() {
      return id;
   }

   public void setId(Integer id) {
      this.id = id;
   }

   public String getCname() {
      return cname;
   }

   public void setCname(String cname) {
      this.cname = cname;
   }

   public Integer getType() {
      return type;
   }

   public void setType(Integer type) {
      this.type = type;
   }

   public Integer getReleasenum() {
      return releasenum;
   }

   public void setReleasenum(Integer releasenum) {
      this.releasenum = releasenum;
   }

   public Double getPrice() {
      return price;
   }

   public void setPrice(Double price) {
      this.price = price;
   }

   public String getContent() {
      return content;
   }

   public void setContent(String content) {
      this.content = content;
   }

   public Date getStartdate() {
      return startdate;
   }

   public void setStartdate(Date startdate) {
      this.startdate = startdate;
   }

   public Date getEnddate() {
      return enddate;
   }

   public void setEnddate(Date enddate) {
      this.enddate = enddate;
   }

   public String getCimg() {
      return cimg;
   }

   public void setCimg(String cimg) {
      this.cimg = cimg;
   }

   @Override
   public String toString() {
      return "Collection{" +
              "id=" + id +
              ", cname='" + cname + '\'' +
              ", type=" + type +
              ", releasenum=" + releasenum +
              ", price=" + price +
              ", content='" + content + '\'' +
              ", startdate=" + startdate +
              ", enddate=" + enddate +
              ", cimg='" + cimg + '\'' +
              ", residual=" + residual +
              '}';
   }
}
